from urllib import request
url='https://www.jd.com'
r = request.urlopen(url)
# content = r.read().decode('utf-8')
# print(content)
print(r.geturl())
print(r.getcode())
print(r.info())